Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use either authlib-injector or system properties, not both #160

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

evan-goode
Copy link
Contributor

Resolves #154

In 1.20+, authlib-injector wants to intercept
https://api.minecraftservices.com/publickeys [0], but if we override the services server using -Dminecraft.api.services.host, the request does not get intercepted.

That's not an issue for API servers that implement the /publickeys route, but Ely.by does not. A decent solution is to not set these -Dminecraft.api.*.host system properties when authlib-injector is available, since authlib-injector expects authlib to make requests to Mojang's API servers.

[0] yushijinhun/authlib-injector@18a0ce2

Resolves fn2006#154

In 1.20+, authlib-injector wants to intercept
https://api.minecraftservices.com/publickeys [0], but if we override the
services server using -Dminecraft.api.services.host, the request does
not get intercepted.

That's not an issue for API servers that implement the /publickeys
route, but Ely.by does not. A decent solution is to not set these
-Dminecraft.api.*.host system properties when authlib-injector is
available, since authlib-injector expects authlib to make requests to
Mojang's API servers.

[0] yushijinhun/authlib-injector@18a0ce2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ely.by on lan servers
1 participant